package com.fer;

import com.fer.controller.ShopController;
import com.fer.model.Shop;
import com.fer.service.ShopService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class shoptest {
    @Autowired
    private ShopService shopService;
    @Autowired
    private ShopController shopController;
    @Test
    public void test(){
//        Shop shop = new Shop();
//        shop.setShop_name("abc");shop.setAddress("bcd");
//        shop.setShop_tel("123456");shop.setBoss_id(2);
//        shop.setShop_id(2);
//        shopController.addShop(shop);
        System.out.println(shopService.selectAllShop());
    }
}
